feat(entropy): add Set Custom Gas Limits guide #765
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Created a comprehensive "Set Custom Gas Limits" guide for Pyth Entropy that builds upon the existing EVM integration guide. The guide shows developers how to use the
requestV2(uint32 gasLimit)
method variant and correspondinggetFeeV2(uint32 gasLimit)
fee calculation for scenarios requiring custom gas limits in entropy callbacks.This addresses the user request to create documentation that references the existing EVM guide as a prerequisite and demonstrates the specific method variants from the IEntropyV2.sol interface.
Type of Change
Areas Affected
pages/entropy/generate-random-numbers/set-custom-gas-limits.mdx
(new file)pages/entropy/generate-random-numbers/_meta.json
(navigation update)Key Changes
requestV2(uint32 gasLimit)
andgetFeeV2(uint32 gasLimit)
methodsCritical Review Items
Checklist
pre-commit run --all-files
to check for linting errors (npm run lint passed)Testing Performed
Related Issues
Addresses Slack request from Jayant to create custom gas limits guide building on existing EVM documentation.
Additional Notes
The guide follows the existing documentation patterns and includes comprehensive examples for both simple and complex callback scenarios. Gas limit constraints are based on the Entropy.sol contract constants, but should be verified against the latest contract version.
Contributor Information
Screenshots
The guide renders correctly with proper navigation, code highlighting, and formatting consistent with existing documentation.